# Contributor: Mike Crute <mike@crute.us>
# Maintainer: Mike Crute <mike@crute.us>
pkgname=znc-playback
pkgver=0_git20210503
pkgrel=3
pkgdesc="An advanced playback module for ZNC"
url="https://wiki.znc.in/Playback"
arch="all"
license="Unlicense"
makedepends="znc-dev icu-dev openssl-dev zlib-dev"
# Upstream does not version, instead use the most recent hash of their master branch
_latest_upstream_hash="8dd128bfe2b24b2cc6a9ea2e2d28bfaa28d2a833"
source="$pkgname-$pkgver.tar.gz::https://github.com/jpnurmi/znc-playback/archive/$_latest_upstream_hash.tar.gz"
options="!check" # Upstream has no tests
builddir="$srcdir/$pkgname-$_latest_upstream_hash"

build() {
	make
}

package() {
	install -D -m644 "$builddir"/playback.so "$pkgdir"/usr/lib/znc/playback.so
}

sha512sums="
50e924574c71fb6ace98c654201040aa2c193f4f1f811aa2ea26ad6ce6ced21bafe61c207936164125d84509e252890b383b21d904fe4cd46490711073052daf  znc-playback-0_git20210503.tar.gz
"
